@zonos/elements 1.3.111 → 1.3.112
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{cart-a3eab220.js → cart-6d966eea.js} +114 -2
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{paypal-ca479c4b.js → paypal-ae7bd9f2.js} +1 -1
- package/dist/cjs/zonos-address_7.cjs.entry.js +1 -1
- package/dist/cjs/zonos-cart-items_13.cjs.entry.js +2 -2
- package/dist/cjs/zonos-checkout.cjs.entry.js +13 -11
- package/dist/cjs/zonos-controller.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +1 -1
- package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
- package/dist/cjs/zonos-notification_3.cjs.entry.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +12 -10
- package/dist/collection/components/store/checkout/cart.js +6 -2
- package/dist/collection/components/store/checkout/stripe.js +48 -1
- package/dist/collection/components/store/translationStore/strings.arabic.js +3 -0
- package/dist/collection/components/store/translationStore/strings.base.js +3 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +3 -0
- package/dist/collection/components/store/translationStore/strings.french.js +3 -0
- package/dist/collection/components/store/translationStore/strings.german.js +3 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +3 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +3 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +3 -0
- package/dist/collection/types/checkout/api/legacy/InventoryCheck.js +1 -0
- package/dist/collection/types/index.js +1 -0
- package/dist/esm/{cart-163f4dd9.js → cart-89bc298d.js} +114 -3
- package/dist/esm/index.js +7 -7
- package/dist/esm/{paypal-77e8eef2.js → paypal-804a4bcb.js} +1 -1
- package/dist/esm/zonos-address_7.entry.js +1 -1
- package/dist/esm/zonos-cart-items_13.entry.js +2 -2
- package/dist/esm/zonos-checkout.entry.js +13 -11
- package/dist/esm/zonos-controller.entry.js +1 -1
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_4.entry.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm/zonos-hello.entry.js +1 -1
- package/dist/esm/zonos-language-select_2.entry.js +1 -1
- package/dist/esm/zonos-notification_3.entry.js +2 -2
- package/dist/esm-es5/cart-89bc298d.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{paypal-77e8eef2.js → paypal-804a4bcb.js} +1 -1
- package/dist/esm-es5/zonos-address_7.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
- package/dist/scripts/index.d.ts +11 -4
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +0 -1
- package/dist/types/components/store/checkout/stripe.d.ts +10 -2
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +3 -0
- package/dist/types/components/store/translationStore.d.ts +1 -1
- package/dist/types/types/checkout/api/NormalizedTempCart.d.ts +11 -4
- package/dist/types/types/checkout/api/legacy/InventoryCheck.d.ts +9 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-007c64dc.system.js +1 -0
- package/dist/zonos-elements/{p-bcfc229f.entry.js → p-05d558c2.entry.js} +1 -1
- package/dist/zonos-elements/{p-8cafdbc9.entry.js → p-0c7d7aec.entry.js} +1 -1
- package/dist/zonos-elements/{p-0ad85ec6.entry.js → p-1769c0d2.entry.js} +1 -1
- package/dist/zonos-elements/p-19433a7d.entry.js +1 -0
- package/dist/zonos-elements/{p-8acdac29.entry.js → p-347c0756.entry.js} +1 -1
- package/dist/zonos-elements/{p-46a71949.system.entry.js → p-3c326d01.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-06e3c94f.entry.js → p-3cfa837c.entry.js} +1 -1
- package/dist/zonos-elements/{p-8e85c28f.system.entry.js → p-45214b34.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a45bd823.system.entry.js → p-55735806.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-49135023.system.js → p-8f9198f2.system.js} +1 -1
- package/dist/zonos-elements/p-97114032.js +1 -0
- package/dist/zonos-elements/p-a43eacf3.system.entry.js +1 -0
- package/dist/zonos-elements/{p-d8a45014.system.entry.js → p-b35e67f7.system.entry.js} +1 -1
- package/dist/zonos-elements/p-c78dd680.system.js +1 -1
- package/dist/zonos-elements/{p-2a0c4426.system.entry.js → p-d01cfb8b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-932cbdd7.system.entry.js → p-d0ccf2af.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-abc6b881.system.entry.js → p-d1f334d8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0810568b.system.entry.js → p-d49cdf77.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5929ba9e.system.js → p-dc5acdd3.system.js} +1 -1
- package/dist/zonos-elements/{p-1dcaf64f.js → p-e132bc3d.js} +1 -1
- package/dist/zonos-elements/{p-58e6386b.entry.js → p-ead95c3b.entry.js} +1 -1
- package/dist/zonos-elements/{p-189aa06e.system.entry.js → p-ece0b7ab.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-605473a3.entry.js → p-ed222a50.entry.js} +1 -1
- package/dist/zonos-elements/{p-124f5c21.entry.js → p-f26c4392.entry.js} +1 -1
- package/dist/zonos-elements/{p-110ee9ab.entry.js → p-fe781493.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/cart-163f4dd9.js +0 -1
- package/dist/zonos-elements/p-5a011a47.system.js +0 -1
- package/dist/zonos-elements/p-a828799f.system.entry.js +0 -1
- package/dist/zonos-elements/p-c44f27be.js +0 -1
- package/dist/zonos-elements/p-ddcbf41d.entry.js +0 -1
|
@@ -336,6 +336,9 @@ const stringsArabic = {
|
|
|
336
336
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
337
337
|
value: 'العناصر التالية لا يمكن شحنها إلى بلدك ولا تُضاف إلى إجمالي سلة مشترياتك.',
|
|
338
338
|
},
|
|
339
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
340
|
+
value: 'العنصر الذي تبحث عنه غير متوفر حاليًا في مخزوننا. يرجى التحقق مرة أخرى لاحقًا أو الاتصال بالدعم للحصول على المساعدة بشأن التوافر.',
|
|
341
|
+
},
|
|
339
342
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
340
343
|
value: 'ينطبق قانون ضريبة السلع والخدمات منخفض القيمة الذي أُقر في 1 يوليو 2018 على هذا التاجر.',
|
|
341
344
|
},
|
|
@@ -750,6 +753,9 @@ const stringsBase = {
|
|
|
750
753
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
751
754
|
value: 'The following items are unable to be shipped to your country and are not included in your cart total.',
|
|
752
755
|
},
|
|
756
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
757
|
+
value: "The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.",
|
|
758
|
+
},
|
|
753
759
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
754
760
|
value: 'The low-value GST law passed July 1st, 2018 applies to this retailer.',
|
|
755
761
|
},
|
|
@@ -1164,6 +1170,9 @@ const stringsChinese = {
|
|
|
1164
1170
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
1165
1171
|
value: '以下商品无法运送至您的国家,并且不包括在您购物车的总额中。',
|
|
1166
1172
|
},
|
|
1173
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
1174
|
+
value: '您正在寻找的商品目前在我们的库存中不可用。请稍后再查看或联系支持以获取可用性方面的帮助。',
|
|
1175
|
+
},
|
|
1167
1176
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
1168
1177
|
value: '2018年7月1日通过的低值GST法适用于本零售商。',
|
|
1169
1178
|
},
|
|
@@ -1578,6 +1587,9 @@ const stringsDanish = {
|
|
|
1578
1587
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
1579
1588
|
value: 'De følgende varer kan ikke sendes til dit land og er ikke inkluderet i din kurvs total.',
|
|
1580
1589
|
},
|
|
1590
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
1591
|
+
value: 'Varen, du leder efter, er i øjeblikket ikke tilgængelig i vores lager. Kom venligst tilbage senere eller kontakt support for hjælp med tilgængelighed.',
|
|
1592
|
+
},
|
|
1581
1593
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
1582
1594
|
value: 'Den lavværdi-GST-lov, der blev vedtaget den 1. juli 2018, gælder for denne forhandler.',
|
|
1583
1595
|
},
|
|
@@ -1992,6 +2004,9 @@ const stringsDutch = {
|
|
|
1992
2004
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
1993
2005
|
value: 'De volgende artikelen kunnen niet naar uw land worden verzonden en zijn niet opgenomen in het totaal van uw winkelwagen.',
|
|
1994
2006
|
},
|
|
2007
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
2008
|
+
value: 'Het item dat u zoekt, is momenteel niet beschikbaar in onze voorraad. Kom later terug of neem contact op met de ondersteuning voor hulp bij de beschikbaarheid.',
|
|
2009
|
+
},
|
|
1995
2010
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
1996
2011
|
value: 'De wet op de laagwaardige GST die op 1 juli 2018 is aangenomen, is van toepassing op deze detailhandelaar.',
|
|
1997
2012
|
},
|
|
@@ -2406,6 +2421,9 @@ const stringsFrench = {
|
|
|
2406
2421
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
2407
2422
|
value: 'Les articles suivants ne peuvent pas être expédiés dans votre pays et ne sont pas inclus dans le total de votre panier.',
|
|
2408
2423
|
},
|
|
2424
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
2425
|
+
value: "L'article que vous recherchez n'est actuellement pas disponible dans notre inventaire. Veuillez revenir plus tard ou contacter le support pour obtenir de l'aide concernant la disponibilité.",
|
|
2426
|
+
},
|
|
2409
2427
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
2410
2428
|
value: "La loi sur la GST à faible valeur adoptée le 1er juillet 2018 s'applique à ce détaillant.",
|
|
2411
2429
|
},
|
|
@@ -2820,6 +2838,9 @@ const stringsGerman = {
|
|
|
2820
2838
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
2821
2839
|
value: 'Die folgenden Artikel können nicht in Ihr Land versandt werden und sind nicht in der Gesamtsumme Ihres Warenkorbs enthalten.',
|
|
2822
2840
|
},
|
|
2841
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
2842
|
+
value: 'Der Artikel, den Sie suchen, ist derzeit nicht in unserem Lager verfügbar. Bitte schauen Sie später noch einmal vorbei oder kontaktieren Sie den Support für Unterstützung bei der Verfügbarkeit.',
|
|
2843
|
+
},
|
|
2823
2844
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
2824
2845
|
value: 'Das am 1. Juli 2018 verabschiedete Niedrigwert-GST-Gesetz gilt für diesen Einzelhändler.',
|
|
2825
2846
|
},
|
|
@@ -3234,6 +3255,9 @@ const stringsHebrew = {
|
|
|
3234
3255
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
3235
3256
|
value: 'הפריטים הבאים לא יכולים להישלח למדינתך ואינם כלולים בסך הכל של עגלתך.',
|
|
3236
3257
|
},
|
|
3258
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
3259
|
+
value: 'הפריט שאתה מחפש אינו זמין כרגע במלאי שלנו. אנא בדוק שוב מאוחר יותר או פנה לתמיכה לקבלת סיוע בזמינות.',
|
|
3260
|
+
},
|
|
3237
3261
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
3238
3262
|
value: 'חוק GST בעל ערך נמוך שנחקק ב-1 ביולי 2018 חל על קמעונאי זה.',
|
|
3239
3263
|
},
|
|
@@ -3648,6 +3672,9 @@ const stringsIndonesian = {
|
|
|
3648
3672
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
3649
3673
|
value: 'Item-item berikut tidak dapat dikirim ke negara Anda dan tidak termasuk dalam total keranjang Anda.',
|
|
3650
3674
|
},
|
|
3675
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
3676
|
+
value: 'Barang yang Anda cari saat ini tidak tersedia di inventaris kami. Silakan periksa kembali nanti atau hubungi dukungan untuk bantuan ketersediaan.',
|
|
3677
|
+
},
|
|
3651
3678
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
3652
3679
|
value: 'Undang-undang GST bernilai rendah yang disahkan pada 1 Juli 2018 berlaku untuk pengecer ini.',
|
|
3653
3680
|
},
|
|
@@ -4062,6 +4089,9 @@ const stringsItalian = {
|
|
|
4062
4089
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
4063
4090
|
value: 'I seguenti articoli non possono essere spediti nel tuo paese e non sono inclusi nel totale del tuo carrello.',
|
|
4064
4091
|
},
|
|
4092
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
4093
|
+
value: "L'articolo che stai cercando non è attualmente disponibile nel nostro inventario. Si prega di ricontrollare più tardi o contattare il supporto per assistenza con la disponibilità.",
|
|
4094
|
+
},
|
|
4065
4095
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
4066
4096
|
value: 'La legge GST di basso valore approvata il 1° luglio 2018 si applica a questo rivenditore.',
|
|
4067
4097
|
},
|
|
@@ -4476,6 +4506,9 @@ const stringsJapanese = {
|
|
|
4476
4506
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
4477
4507
|
value: '以下のアイテムはお客様の国への発送ができませんので、カートの合計には含まれません。',
|
|
4478
4508
|
},
|
|
4509
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
4510
|
+
value: 'お探しの商品は現在、在庫にありません。後で再度確認するか、サポートに連絡して在庫状況の確認をお願いします。',
|
|
4511
|
+
},
|
|
4479
4512
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
4480
4513
|
value: '2018年7月1日に可決された低額GST法はこの小売業者に適用されます。',
|
|
4481
4514
|
},
|
|
@@ -4890,6 +4923,9 @@ const stringsKorean = {
|
|
|
4890
4923
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
4891
4924
|
value: '다음 항목은 국가로 배송할 수 없으며 장바구니 총액에 포함되지 않습니다.',
|
|
4892
4925
|
},
|
|
4926
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
4927
|
+
value: '찾고 계신 상품은 현재 재고에 없습니다. 나중에 다시 확인하거나 지원팀에 연락하여 가용성에 대한 도움을 받으십시오.',
|
|
4928
|
+
},
|
|
4893
4929
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
4894
4930
|
value: '2018년 7월 1일에 통과된 저가 GST 법은 이 소매업체에 적용됩니다.',
|
|
4895
4931
|
},
|
|
@@ -5304,6 +5340,9 @@ const stringsNorwegian = {
|
|
|
5304
5340
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
5305
5341
|
value: 'Følgende varer kan ikke sendes til landet ditt og er ikke inkludert i totalen for handlekurven din.',
|
|
5306
5342
|
},
|
|
5343
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
5344
|
+
value: 'Varen du leter etter er for øyeblikket ikke tilgjengelig i vårt lager. Vennligst sjekk tilbake senere eller kontakt support for hjelp med tilgjengelighet.',
|
|
5345
|
+
},
|
|
5307
5346
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
5308
5347
|
value: 'Den lavverdige GST-loven som ble vedtatt 1. juli 2018 gjelder for denne forhandleren.',
|
|
5309
5348
|
},
|
|
@@ -5718,6 +5757,9 @@ const stringsPolish = {
|
|
|
5718
5757
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
5719
5758
|
value: 'Następujące przedmioty nie mogą być wysłane do twojego kraju i nie są wliczone do sumy twojego koszyka.',
|
|
5720
5759
|
},
|
|
5760
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
5761
|
+
value: 'Przedmiot, którego szukasz, jest obecnie niedostępny w naszym magazynie. Proszę sprawdzić ponownie później lub skontaktować się z pomocą techniczną w celu uzyskania pomocy w sprawie dostępności.',
|
|
5762
|
+
},
|
|
5721
5763
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
5722
5764
|
value: 'Prawo niskowartościowego GST przyjęte 1 lipca 2018 r. dotyczy tego sprzedawcy.',
|
|
5723
5765
|
},
|
|
@@ -6132,6 +6174,9 @@ const stringsPortuguese = {
|
|
|
6132
6174
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
6133
6175
|
value: 'Os seguintes itens não podem ser enviados para o seu país e não estão incluídos no total do seu carrinho.',
|
|
6134
6176
|
},
|
|
6177
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
6178
|
+
value: 'O item que você está procurando está atualmente indisponível em nosso estoque. Por favor, verifique novamente mais tarde ou entre em contato com o suporte para obter assistência com a disponibilidade.',
|
|
6179
|
+
},
|
|
6135
6180
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
6136
6181
|
value: 'A lei de GST de baixo valor aprovada em 1º de julho de 2018 se aplica a este varejista.',
|
|
6137
6182
|
},
|
|
@@ -6546,6 +6591,9 @@ const stringsRussian = {
|
|
|
6546
6591
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
6547
6592
|
value: 'Следующие товары не могут быть доставлены в вашу страну и не включены в итоговую сумму вашей корзины.',
|
|
6548
6593
|
},
|
|
6594
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
6595
|
+
value: 'Товар, который вы ищете, в настоящее время недоступен в нашем инвентаре. Пожалуйста, проверьте позже или свяжитесь с поддержкой для получения помощи с доступностью.',
|
|
6596
|
+
},
|
|
6549
6597
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
6550
6598
|
value: 'Закон о низкой стоимости GST, принятый 1 июля 2018 года, применяется к этому розничному продавцу.',
|
|
6551
6599
|
},
|
|
@@ -6960,6 +7008,9 @@ const stringsSpanish = {
|
|
|
6960
7008
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
6961
7009
|
value: 'Los siguientes artículos no se pueden enviar a su país y no están incluidos en el total de su carrito.',
|
|
6962
7010
|
},
|
|
7011
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
7012
|
+
value: 'El artículo que buscas no está disponible actualmente en nuestro inventario. Por favor, vuelve a comprobar más tarde o contacta con el soporte para obtener ayuda con la disponibilidad.',
|
|
7013
|
+
},
|
|
6963
7014
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
6964
7015
|
value: 'La ley de GST de bajo valor aprobada el 1 de julio de 2018 se aplica a este minorista.',
|
|
6965
7016
|
},
|
|
@@ -7374,6 +7425,9 @@ const stringsSwedish = {
|
|
|
7374
7425
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
7375
7426
|
value: 'Följande artiklar kan inte skickas till ditt land och är inte inkluderade i din varukorgs totala belopp.',
|
|
7376
7427
|
},
|
|
7428
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
7429
|
+
value: 'Artikeln du letar efter är för närvarande inte tillgänglig i vårt lager. Vänligen återkom senare eller kontakta supporten för hjälp med tillgänglighet.',
|
|
7430
|
+
},
|
|
7377
7431
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
7378
7432
|
value: 'Lågvärde-GST-lagen som antogs den 1 juli 2018 gäller för denna återförsäljare.',
|
|
7379
7433
|
},
|
|
@@ -7788,6 +7842,9 @@ const stringsTurkish = {
|
|
|
7788
7842
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
7789
7843
|
value: 'Aşağıdaki ürünler ülkenize gönderilemiyor ve sepet toplamınıza dahil edilmiyor.',
|
|
7790
7844
|
},
|
|
7845
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
7846
|
+
value: 'Aradığınız ürün şu anda envanterimizde mevcut değil. Lütfen daha sonra tekrar kontrol edin veya uygunluk konusunda yardım için destekle iletişime geçin.',
|
|
7847
|
+
},
|
|
7791
7848
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
7792
7849
|
value: "1 Temmuz 2018'de yürürlüğe giren düşük değerli GST yasası bu perakendeci için geçerlidir.",
|
|
7793
7850
|
},
|
|
@@ -8202,6 +8259,9 @@ const stringsVietnamese = {
|
|
|
8202
8259
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
8203
8260
|
value: 'Các mặt hàng sau không thể được vận chuyển đến quốc gia của bạn và không được tính vào tổng số giỏ hàng của bạn.',
|
|
8204
8261
|
},
|
|
8262
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
8263
|
+
value: 'Mặt hàng bạn đang tìm kiếm hiện không có sẵn trong kho của chúng tôi. Vui lòng kiểm tra lại sau hoặc liên hệ với bộ phận hỗ trợ để được trợ giúp về tình trạng sẵn có.',
|
|
8264
|
+
},
|
|
8205
8265
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
8206
8266
|
value: 'Luật GST giá trị thấp được thông qua ngày 1 tháng 7 năm 2018 áp dụng cho nhà bán lẻ này.',
|
|
8207
8267
|
},
|
|
@@ -9486,6 +9546,7 @@ const { onChange: onChange$1, reset: reset$1, state: stripeStore, } = zonosStore
|
|
|
9486
9546
|
hasPaymentError: false,
|
|
9487
9547
|
isFetchingLandedCost: false,
|
|
9488
9548
|
isFetchingSession: false,
|
|
9549
|
+
shouldInventoryRefund: false,
|
|
9489
9550
|
stripe: null,
|
|
9490
9551
|
stripeAddressElement: null,
|
|
9491
9552
|
stripeAddressEventData: null,
|
|
@@ -9813,13 +9874,59 @@ const stripeStoreMessageBasedOnStatus = (status) => {
|
|
|
9813
9874
|
* Handle inventory check and returns error message if the callback provided.
|
|
9814
9875
|
*/
|
|
9815
9876
|
const stripeStoreHandleInventoryCheck = async () => {
|
|
9877
|
+
var _a, _b;
|
|
9816
9878
|
const { onInventoryCheck } = zonosStore.zonosStore.checkoutSettings;
|
|
9879
|
+
const hasReferenceId = !!((_b = (_a = window.Zonos.cartData) === null || _a === void 0 ? void 0 : _a.metadata.find(meta => meta.key === 'referenceId')) === null || _b === void 0 ? void 0 : _b.value);
|
|
9880
|
+
// default inventory check is only available for legacy checkout and store has referenceId in metadata
|
|
9881
|
+
if (window.Zonos.isLegacyCheckout &&
|
|
9882
|
+
window.Zonos.cartData &&
|
|
9883
|
+
hasReferenceId) {
|
|
9884
|
+
const { errors, json } = await handleFetch.handleFetch('/api/zonos-elements/legacy/inventory-check', {
|
|
9885
|
+
body: {
|
|
9886
|
+
cartData: window.Zonos.cartData,
|
|
9887
|
+
},
|
|
9888
|
+
method: 'POST',
|
|
9889
|
+
});
|
|
9890
|
+
if (errors.length || !json) {
|
|
9891
|
+
handleFetch.logError('Error occurs when handling inventory refund', 'warn', JSON.stringify(errors));
|
|
9892
|
+
return null;
|
|
9893
|
+
}
|
|
9894
|
+
// Proceed if the item is available
|
|
9895
|
+
if (!json.available || json.status === 204) {
|
|
9896
|
+
return translate("The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.");
|
|
9897
|
+
}
|
|
9898
|
+
if (json.available || json.status === 200) {
|
|
9899
|
+
stripeStore.shouldInventoryRefund = true;
|
|
9900
|
+
return null;
|
|
9901
|
+
}
|
|
9902
|
+
return null;
|
|
9903
|
+
}
|
|
9817
9904
|
if (typeof onInventoryCheck !== 'function') {
|
|
9818
9905
|
return null;
|
|
9819
9906
|
}
|
|
9820
9907
|
const message = await onInventoryCheck({ items: cartStore.items });
|
|
9821
9908
|
return message;
|
|
9822
9909
|
};
|
|
9910
|
+
/**
|
|
9911
|
+
* Handle inventory check and returns error message if the callback provided.
|
|
9912
|
+
*/
|
|
9913
|
+
const stripeStoreHandleInventoryRefund = async () => {
|
|
9914
|
+
var _a, _b;
|
|
9915
|
+
const hasReferenceId = !!((_b = (_a = window.Zonos.cartData) === null || _a === void 0 ? void 0 : _a.metadata.find(meta => meta.key === 'referenceId')) === null || _b === void 0 ? void 0 : _b.value);
|
|
9916
|
+
// inventory refund is only available for legacy checkout and store has referenceId in metadata
|
|
9917
|
+
if (!window.Zonos.isLegacyCheckout ||
|
|
9918
|
+
!window.Zonos.cartData ||
|
|
9919
|
+
!hasReferenceId) {
|
|
9920
|
+
return;
|
|
9921
|
+
}
|
|
9922
|
+
// handle inventory check on legacy checkout
|
|
9923
|
+
await handleFetch.handleFetch('/api/zonos-elements/legacy/inventory-refund', {
|
|
9924
|
+
body: {
|
|
9925
|
+
cartData: window.Zonos.cartData,
|
|
9926
|
+
},
|
|
9927
|
+
method: 'POST',
|
|
9928
|
+
});
|
|
9929
|
+
};
|
|
9823
9930
|
const stripeStoreRetrievePayment = async ({ clientSecret: _clientSecret, storybookForceStatus, }) => {
|
|
9824
9931
|
if (storybookForceStatus) {
|
|
9825
9932
|
// return status right away if we are in storybook mode
|
|
@@ -10237,11 +10344,15 @@ const cartStoreHasOneEligibleItem = () => {
|
|
|
10237
10344
|
return !!checkItems.find(item => !item.isRestricted);
|
|
10238
10345
|
};
|
|
10239
10346
|
const cartStoreSetCheckoutSession = (checkoutSession) => {
|
|
10240
|
-
var _a, _b, _c;
|
|
10347
|
+
var _a, _b, _c, _d, _e;
|
|
10241
10348
|
cartStore.checkoutSession = checkoutSession;
|
|
10242
10349
|
cartStore.checkoutSessionId = checkoutSession.id;
|
|
10243
10350
|
// Check if there is a redirect URL in the metadata to override
|
|
10244
|
-
const externalConfirmationPageURL = ((_c = (_b = (_a = cartStore.checkoutSession) === null || _a === void 0 ? void 0 : _a.metadata) === null || _b === void 0 ? void 0 : _b.find(entry => (entry === null || entry === void 0 ? void 0 : entry.key) === 'externalConfirmationPageURL')) === null || _c === void 0 ? void 0 : _c.value) ||
|
|
10351
|
+
const externalConfirmationPageURL = ((_c = (_b = (_a = cartStore.checkoutSession) === null || _a === void 0 ? void 0 : _a.metadata) === null || _b === void 0 ? void 0 : _b.find(entry => (entry === null || entry === void 0 ? void 0 : entry.key) === 'externalConfirmationPageURL')) === null || _c === void 0 ? void 0 : _c.value) ||
|
|
10352
|
+
(
|
|
10353
|
+
// Sometimes externalConfirmationPageURL is not in checkoutSession create/update, check if there is a redirect URL in the cart metadata to override
|
|
10354
|
+
(_e = (_d = window.Zonos.cartData) === null || _d === void 0 ? void 0 : _d.metadata.find(entry => (entry === null || entry === void 0 ? void 0 : entry.key) === 'externalConfirmationPageURL')) === null || _e === void 0 ? void 0 : _e.value) ||
|
|
10355
|
+
null;
|
|
10245
10356
|
if (externalConfirmationPageURL) {
|
|
10246
10357
|
handleFetch.log(`Found externalConfirmationPageURL: ${externalConfirmationPageURL}`);
|
|
10247
10358
|
cartStore.externalConfirmationPageURL = externalConfirmationPageURL;
|
|
@@ -10489,6 +10600,7 @@ exports.stripeStoreCleanupDomesticShippingSession = stripeStoreCleanupDomesticSh
|
|
|
10489
10600
|
exports.stripeStoreConfirmPayment = stripeStoreConfirmPayment;
|
|
10490
10601
|
exports.stripeStoreGetDomesticShippingSession = stripeStoreGetDomesticShippingSession;
|
|
10491
10602
|
exports.stripeStoreHandleInventoryCheck = stripeStoreHandleInventoryCheck;
|
|
10603
|
+
exports.stripeStoreHandleInventoryRefund = stripeStoreHandleInventoryRefund;
|
|
10492
10604
|
exports.stripeStoreInitCheckoutSession = stripeStoreInitCheckoutSession;
|
|
10493
10605
|
exports.stripeStoreMessageBasedOnStatus = stripeStoreMessageBasedOnStatus;
|
|
10494
10606
|
exports.stripeStorePrefetchLandedCost = stripeStorePrefetchLandedCost;
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -97,7 +97,7 @@ const getZonosQaUrl = () => {
|
|
|
97
97
|
return null;
|
|
98
98
|
}
|
|
99
99
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
100
|
-
const cdnUrl = "https://v1.3.
|
|
100
|
+
const cdnUrl = "https://v1.3.112.js.zonos.com";
|
|
101
101
|
// when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
|
|
102
102
|
if (!qaUrl &&
|
|
103
103
|
(cdnUrl.includes('test.') ||
|
|
@@ -281,10 +281,10 @@ const zonosLoadUrl = (() => {
|
|
|
281
281
|
}
|
|
282
282
|
return null;
|
|
283
283
|
})();
|
|
284
|
-
const ZONOS_URL = "https://v1.3.
|
|
285
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
286
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
287
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
284
|
+
const ZONOS_URL = "https://v1.3.112.js.zonos.com";
|
|
285
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.112";
|
|
286
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.112";
|
|
287
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.112";
|
|
288
288
|
const INTER_FONT_URL = 'https://rsms.me';
|
|
289
289
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
290
290
|
const INTER_FONT_REGEX = /^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;
|
|
@@ -299,7 +299,7 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
|
|
|
299
299
|
!!window.location.search.match(/\?.*(&*)zonosConversionTest/);
|
|
300
300
|
Zonos._paypalMockResponse = null;
|
|
301
301
|
Zonos.isBigCommerce = false;
|
|
302
|
-
Zonos.releaseDate = "
|
|
302
|
+
Zonos.releaseDate = "1730313605923";
|
|
303
303
|
Zonos.isLegacyCheckout = false;
|
|
304
304
|
Zonos.showBaseForeign = typeof window !== 'undefined' &&
|
|
305
305
|
window.location.search.includes('zonosShowBaseForeign');
|
|
@@ -309,7 +309,7 @@ Zonos.showBaseForeign = typeof window !== 'undefined' &&
|
|
|
309
309
|
Zonos.isNpm = true;
|
|
310
310
|
Zonos.zonosQaUrl = null;
|
|
311
311
|
Zonos.zonosQaUrlApi = null;
|
|
312
|
-
Zonos.version = `v${"1.3.
|
|
312
|
+
Zonos.version = `v${"1.3.112"}`;
|
|
313
313
|
Zonos.modeAlerted = false;
|
|
314
314
|
Zonos.cartData = null;
|
|
315
315
|
Zonos.paypal = null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const zonosStore = require('./zonosStore-b18fe6b6.js');
|
|
4
|
-
const cart = require('./cart-
|
|
4
|
+
const cart = require('./cart-6d966eea.js');
|
|
5
5
|
const handleFetch = require('./handleFetch-aa729c61.js');
|
|
6
6
|
const isDarkColor = require('./isDarkColor-87ee1eb7.js');
|
|
7
7
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-6d966eea.js');
|
|
7
7
|
const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
|
|
8
8
|
const handleFetch = require('./handleFetch-aa729c61.js');
|
|
9
9
|
const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-6d966eea.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const paypal = require('./paypal-
|
|
8
|
+
const paypal = require('./paypal-ae7bd9f2.js');
|
|
9
9
|
const zonosStore = require('./zonosStore-b18fe6b6.js');
|
|
10
10
|
const createCustomEvent = require('./createCustomEvent-3e982e57.js');
|
|
11
11
|
const getBorderRadius = require('./getBorderRadius-53c35cd1.js');
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const paypal = require('./paypal-
|
|
6
|
+
const cart = require('./cart-6d966eea.js');
|
|
7
|
+
const paypal = require('./paypal-ae7bd9f2.js');
|
|
8
8
|
const zonosStore = require('./zonosStore-b18fe6b6.js');
|
|
9
9
|
const handleFetch = require('./handleFetch-aa729c61.js');
|
|
10
10
|
const createCustomEvent = require('./createCustomEvent-3e982e57.js');
|
|
@@ -514,6 +514,7 @@ const ZonosCheckout = class {
|
|
|
514
514
|
catch (err) {
|
|
515
515
|
// stop loading
|
|
516
516
|
cart.stripeStore.isFetchingSession = false;
|
|
517
|
+
handleFetch.logError(err);
|
|
517
518
|
// We want to log the error anytime we fail to create a checkout session
|
|
518
519
|
void handleFetch.sendErrorLog({
|
|
519
520
|
endpoint: 'Error creating Checkout',
|
|
@@ -728,15 +729,13 @@ const ZonosCheckout = class {
|
|
|
728
729
|
this.submitLoading = false;
|
|
729
730
|
}, 500);
|
|
730
731
|
}
|
|
731
|
-
handleInventoryCheckDialogCancel() {
|
|
732
|
-
// reset inventory check message to close the inventory check alert
|
|
733
|
-
cart.cartStore.inventoryCheckErrorMessage = null;
|
|
734
|
-
}
|
|
735
732
|
handleInventoryCheckDialogConfirm() {
|
|
736
733
|
// reset inventory check message to close the inventory check alert
|
|
737
734
|
cart.cartStore.inventoryCheckErrorMessage = null;
|
|
738
|
-
// close the dialog
|
|
739
|
-
|
|
735
|
+
// close the dialog only when it's not hosted checkout
|
|
736
|
+
if (!this.isLegacyCheckout) {
|
|
737
|
+
void this.closeDialogHandler({ confirmed: true });
|
|
738
|
+
}
|
|
740
739
|
}
|
|
741
740
|
async handleStripePaymentContinue() {
|
|
742
741
|
// reset error state
|
|
@@ -768,6 +767,11 @@ const ZonosCheckout = class {
|
|
|
768
767
|
catch (err) {
|
|
769
768
|
handleFetch.logError(err);
|
|
770
769
|
cart.stripeStore.hasPaymentError = true;
|
|
770
|
+
// should request inventory refund if there's an error during payment
|
|
771
|
+
if (cart.stripeStore.shouldInventoryRefund) {
|
|
772
|
+
void cart.stripeStoreHandleInventoryRefund();
|
|
773
|
+
cart.stripeStore.shouldInventoryRefund = false;
|
|
774
|
+
}
|
|
771
775
|
}
|
|
772
776
|
this.submitLoading = false;
|
|
773
777
|
}
|
|
@@ -946,9 +950,7 @@ const ZonosCheckout = class {
|
|
|
946
950
|
// Show dialog if inventory check error message is not null
|
|
947
951
|
dialogOpen: !!cart.cartStore.inventoryCheckErrorMessage,
|
|
948
952
|
// If dialog is in open state, the message should not be null
|
|
949
|
-
dialogSubtitle: cart.cartStore.inventoryCheckErrorMessage, dialogTitle: cart.translate("Couldn't place order"), dialogType: "alert",
|
|
950
|
-
this.handleInventoryCheckDialogCancel();
|
|
951
|
-
},
|
|
953
|
+
dialogSubtitle: cart.cartStore.inventoryCheckErrorMessage, dialogTitle: cart.translate("Couldn't place order"), dialogType: "alert",
|
|
952
954
|
// Mark user selected confirm to close the dialog
|
|
953
955
|
onConfirmClicked: () => this.handleInventoryCheckDialogConfirm() })));
|
|
954
956
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-6d966eea.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-b18fe6b6.js');
|
|
8
8
|
const handleFetch = require('./handleFetch-aa729c61.js');
|
|
9
9
|
require('./isDarkColor-87ee1eb7.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-6d966eea.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-b18fe6b6.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
require('./handleFetch-aa729c61.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-6d966eea.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-b18fe6b6.js');
|
|
8
8
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
9
9
|
const isDarkColor = require('./isDarkColor-87ee1eb7.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-6d966eea.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-b18fe6b6.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
6
|
const zonosStore = require('./zonosStore-b18fe6b6.js');
|
|
7
|
-
const cart = require('./cart-
|
|
7
|
+
const cart = require('./cart-6d966eea.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
const handleFetch = require('./handleFetch-aa729c61.js');
|
|
10
10
|
const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-6d966eea.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-b18fe6b6.js');
|
|
8
8
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
9
9
|
require('./handleFetch-aa729c61.js');
|
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
6
|
const zonosStore = require('./zonosStore-b18fe6b6.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const cart = require('./cart-
|
|
8
|
+
const cart = require('./cart-6d966eea.js');
|
|
9
9
|
const handleFetch = require('./handleFetch-aa729c61.js');
|
|
10
|
-
const paypal = require('./paypal-
|
|
10
|
+
const paypal = require('./paypal-ae7bd9f2.js');
|
|
11
11
|
require('./isDarkColor-87ee1eb7.js');
|
|
12
12
|
require('./getBorderRadius-53c35cd1.js');
|
|
13
13
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Fragment, h, Host, } from "@stencil/core";
|
|
2
2
|
import { cartStore, cartStoreClearCheckoutInterval, cartStoreNextStep, cartStoreReset, cartStoreResetTabItems, cartStoreSetCheckoutSession, cartStoreStartCheckoutInterval, cartStoreUpdateItems, cartStoreUpdateToErrorState, } from "../../store/checkout/cart";
|
|
3
3
|
import { paypalInitScript, paypalStoreHasPaypalEnabled, } from "../../store/checkout/paypal";
|
|
4
|
-
import { initStripeElements, stripeStore, stripeStoreCleanupDomesticShippingSession, stripeStoreConfirmPayment, stripeStoreHandleInventoryCheck, stripeStoreInitCheckoutSession, stripeStorePrefetchLandedCost, stripeStoreReset, } from "../../store/checkout/stripe";
|
|
4
|
+
import { initStripeElements, stripeStore, stripeStoreCleanupDomesticShippingSession, stripeStoreConfirmPayment, stripeStoreHandleInventoryCheck, stripeStoreHandleInventoryRefund, stripeStoreInitCheckoutSession, stripeStorePrefetchLandedCost, stripeStoreReset, } from "../../store/checkout/stripe";
|
|
5
5
|
import { localizationStore, localizationStoreOnUpdate, } from "../../store/hello/localization";
|
|
6
6
|
import { translate } from "../../store/translationStore";
|
|
7
7
|
import { getZonosStoreTheme, zonosStore, } from "../../store/zonosStore";
|
|
@@ -301,6 +301,7 @@ export class ZonosCheckout {
|
|
|
301
301
|
catch (err) {
|
|
302
302
|
// stop loading
|
|
303
303
|
stripeStore.isFetchingSession = false;
|
|
304
|
+
logError(err);
|
|
304
305
|
// We want to log the error anytime we fail to create a checkout session
|
|
305
306
|
void sendErrorLog({
|
|
306
307
|
endpoint: 'Error creating Checkout',
|
|
@@ -515,15 +516,13 @@ export class ZonosCheckout {
|
|
|
515
516
|
this.submitLoading = false;
|
|
516
517
|
}, 500);
|
|
517
518
|
}
|
|
518
|
-
handleInventoryCheckDialogCancel() {
|
|
519
|
-
// reset inventory check message to close the inventory check alert
|
|
520
|
-
cartStore.inventoryCheckErrorMessage = null;
|
|
521
|
-
}
|
|
522
519
|
handleInventoryCheckDialogConfirm() {
|
|
523
520
|
// reset inventory check message to close the inventory check alert
|
|
524
521
|
cartStore.inventoryCheckErrorMessage = null;
|
|
525
|
-
// close the dialog
|
|
526
|
-
|
|
522
|
+
// close the dialog only when it's not hosted checkout
|
|
523
|
+
if (!this.isLegacyCheckout) {
|
|
524
|
+
void this.closeDialogHandler({ confirmed: true });
|
|
525
|
+
}
|
|
527
526
|
}
|
|
528
527
|
async handleStripePaymentContinue() {
|
|
529
528
|
// reset error state
|
|
@@ -555,6 +554,11 @@ export class ZonosCheckout {
|
|
|
555
554
|
catch (err) {
|
|
556
555
|
logError(err);
|
|
557
556
|
stripeStore.hasPaymentError = true;
|
|
557
|
+
// should request inventory refund if there's an error during payment
|
|
558
|
+
if (stripeStore.shouldInventoryRefund) {
|
|
559
|
+
void stripeStoreHandleInventoryRefund();
|
|
560
|
+
stripeStore.shouldInventoryRefund = false;
|
|
561
|
+
}
|
|
558
562
|
}
|
|
559
563
|
this.submitLoading = false;
|
|
560
564
|
}
|
|
@@ -733,9 +737,7 @@ export class ZonosCheckout {
|
|
|
733
737
|
// Show dialog if inventory check error message is not null
|
|
734
738
|
dialogOpen: !!cartStore.inventoryCheckErrorMessage,
|
|
735
739
|
// If dialog is in open state, the message should not be null
|
|
736
|
-
dialogSubtitle: cartStore.inventoryCheckErrorMessage, dialogTitle: translate("Couldn't place order"), dialogType: "alert",
|
|
737
|
-
this.handleInventoryCheckDialogCancel();
|
|
738
|
-
},
|
|
740
|
+
dialogSubtitle: cartStore.inventoryCheckErrorMessage, dialogTitle: translate("Couldn't place order"), dialogType: "alert",
|
|
739
741
|
// Mark user selected confirm to close the dialog
|
|
740
742
|
onConfirmClicked: () => this.handleInventoryCheckDialogConfirm() })));
|
|
741
743
|
}
|
|
@@ -161,11 +161,15 @@ const cartStoreHasOneEligibleItem = () => {
|
|
|
161
161
|
return !!checkItems.find(item => !item.isRestricted);
|
|
162
162
|
};
|
|
163
163
|
const cartStoreSetCheckoutSession = (checkoutSession) => {
|
|
164
|
-
var _a, _b, _c;
|
|
164
|
+
var _a, _b, _c, _d, _e;
|
|
165
165
|
cartStore.checkoutSession = checkoutSession;
|
|
166
166
|
cartStore.checkoutSessionId = checkoutSession.id;
|
|
167
167
|
// Check if there is a redirect URL in the metadata to override
|
|
168
|
-
const externalConfirmationPageURL = ((_c = (_b = (_a = cartStore.checkoutSession) === null || _a === void 0 ? void 0 : _a.metadata) === null || _b === void 0 ? void 0 : _b.find(entry => (entry === null || entry === void 0 ? void 0 : entry.key) === 'externalConfirmationPageURL')) === null || _c === void 0 ? void 0 : _c.value) ||
|
|
168
|
+
const externalConfirmationPageURL = ((_c = (_b = (_a = cartStore.checkoutSession) === null || _a === void 0 ? void 0 : _a.metadata) === null || _b === void 0 ? void 0 : _b.find(entry => (entry === null || entry === void 0 ? void 0 : entry.key) === 'externalConfirmationPageURL')) === null || _c === void 0 ? void 0 : _c.value) ||
|
|
169
|
+
(
|
|
170
|
+
// Sometimes externalConfirmationPageURL is not in checkoutSession create/update, check if there is a redirect URL in the cart metadata to override
|
|
171
|
+
(_e = (_d = window.Zonos.cartData) === null || _d === void 0 ? void 0 : _d.metadata.find(entry => (entry === null || entry === void 0 ? void 0 : entry.key) === 'externalConfirmationPageURL')) === null || _e === void 0 ? void 0 : _e.value) ||
|
|
172
|
+
null;
|
|
169
173
|
if (externalConfirmationPageURL) {
|
|
170
174
|
log(`Found externalConfirmationPageURL: ${externalConfirmationPageURL}`);
|
|
171
175
|
cartStore.externalConfirmationPageURL = externalConfirmationPageURL;
|